<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: 'App',
  watch:{
    $route(to,from){
      console.log(to);
      if (to.path != '/login'){
        let obj={
          name:to.name,
          title:to.meta.title
        }
        this.$store.commit("addTab",obj);
      }
    }
  }
}
</script>

<style >
html,body,#app{
  margin: 0;
  padding: 0;
  border: 0;
  height: 100%;
}
</style>
